-
Notifications
You must be signed in to change notification settings - Fork 38
[IREE] Inference & Benchmark #590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[IREE] Inference & Benchmark #590
Conversation
85d30e8 to
8cf3fbf
Compare
valentina-kustikova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vladislav-Denisov, посмотрела код, написала небольшие комментарии. Надо еще отследить, что проверка стиля кодирования везде проходит.
src/inference/inference_iree.py
Outdated
|
|
||
| def load_iree_model(vmfb_buffer): | ||
| try: | ||
| config = ireert.Config('local-task') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'local-task' - единственное возможное значение параметра функции? Не понятно, имеет ли смысл выносить в константы или параметры.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Все доступные варианты помимо local-task описаны в табличке здесь
Я захардкодил, потому что пока что рассматривал только запуск на CPU.
| self._model_path = args.model | ||
|
|
||
| def get_input_layer_names(self, model): | ||
| return ['input'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А здесь точно для всех моделей одинаковое название входного слоя будет? Надо подумать, но скорее всего название входного слоя придется отдавать через параметры.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для IREE на самом деле не требуется наименование входного слоя.
Он использует наименование функции, в скомпилированном модуле, которую потребуется исполнить https://github.com/Vladislav-Denisov/dl-benchmark/blob/70526453d3c0421d93746556507e7c6096ed0cbf/src/inference/inference_iree.py#L59
Входной слой захардкожен, потому что он требуется для некоторых методов IOAdapter
4192375 to
40cfd33
Compare
40cfd33 to
15ac8f9
Compare
No description provided.